feat: spring 2025, all hands project 3, team 4 - Hashing Algorithm Runtime and Collision Analysis #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This pull request delves into the analysis of various hashing algorithms, focusing on their performance in terms of collision frequency and runtime efficiency. The algorithms explored include Python's built-in hash(), MurmurHash, DJB2, and a custom modulo hash. The analysis is based on datasets of varying sizes (5k, 10k, and 20k entries) to assess how each algorithm behaves in different conditions. This PR provides insights into the strengths and weaknesses of these algorithms and contributes to understanding their efficiency in dictionary-based data storage scenarios.
Key Changes:
Added performance benchmarks for different hashing algorithms.
Included collision frequency and runtime analysis for datasets of 5k, 10k, and 20k entries.
Included comparison across multiple algorithms for better understanding of their efficiency..